
#include <stdio.h>
#include <ctype.h>
#include <string.h>
int main()
{
    char a[30];
    char b;
    scanf("%s", a);
    getchar();
    printf("l to low,u to up");
    b = getchar();
    getchar();
    if (b == 'l')
    {
        for (int i = 0; i < strlen(a); i++)
        {
            printf("%c", tolower(a[i]));
        }
    }
    else if (b == 'u')
    {
        for (int i = 0; i < strlen(a); i++)
        {
            printf("%c", toupper(a[i]));
        }
    }
getchar();
return 0;
}
